home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
FishMarket 1.0
/
FishMarket v1.0.iso
/
fishies
/
151-175
/
disk_156
/
flex
/
flex2
/
patch.2
< prev
next >
Wrap
Text File
|
1992-05-06
|
916b
|
35 lines
flex scanners compiled using -f or -F can generate bogus "NULL in input"
messages (and then die). The fix follows.
Vern
*** parse.y Thu May 5 13:36:18 1988
--- /tmp/da1569 Thu May 5 14:43:06 1988
***************
*** 27,48 ****
%%
goal : initlex sect1 sect1end sect2
- { /* add default rule */
- int def_rule;
-
- pat = cclinit();
- cclnegate( pat );
-
- def_rule = mkstate( -pat );
-
- add_accept( def_rule, 0, 0 );
-
- for ( i = 1; i <= lastsc; ++i )
- scset[i] = mkbranch( scset[i], def_rule );
-
- fputs( "YY_DEFAULT_ACTION;\n\tYY_BREAK\n",
- temp_action_file );
- }
;
initlex :
--- 27,32 ----